import request from '@/utils/request'
import BaseUrl from '@/utils/BaseUrl'

export function listMonitorOnline(query) {
  return request({
    url: BaseUrl.API_SYS + '/monitor/online/list',
    method: 'post',
    data: query
  })
}

/**
 * 强制下线
 * @param query
 * @returns {AxiosPromise}
 */
export function logout(query) {
  return request({
    url: BaseUrl.API_SYS + '/monitor/online/logout',
    data: query
  })
}
